MoneyInterval<T>
Represents a sum of money to be exchanged during a given interval.Syntax
Inheritance
Constructors
MoneyInterval
MoneyInterval
Parameters
- money decimal: The amount of money represented by the given interval.
- value
T: The duration of the interval. - type IntervalType: The base unit that describes what the quantity of this interval references.
MoneyInterval
Parameters
- value
T: The duration of the interval. - type IntervalType: The base unit that describes what the quantity of this interval references.
Properties
Money
Returns
decimalMethods
PerDay
Returns
decimal The amount of money per day as a decimal value.PerDay
Parameters
- quantity decimal: The quantity multiplier (e.g., hours worked, units sold).
Returns
decimal The total amount of money per day as a decimal value.PerHour
Returns
decimal The amount of money per hour as a decimal value.PerHour
Parameters
- quantity decimal: The quantity multiplier (e.g., hours worked, units sold).
Returns
decimal The total amount of money per hour as a decimal value.PerMinute
Returns
decimal The amount of money per minute as a decimal value.PerMinute
Parameters
- quantity decimal: The quantity multiplier (e.g., hours worked, units sold).
Returns
decimal The total amount of money per minute as a decimal value.PerMonth
Returns
decimal The amount of money per month as a decimal value.PerMonth
Parameters
- quantity decimal: The quantity multiplier (e.g., hours worked, units sold).
Returns
decimal The total amount of money per month as a decimal value.PerWeek
Returns
decimal The amount of money per week as a decimal value.PerWeek
Parameters
- quantity decimal: The quantity multiplier (e.g., hours worked, units sold).
Returns
decimal The total amount of money per week as a decimal value.PerYear
Returns
decimal The amount of money per year as a decimal value.PerYear
Parameters
- quantity decimal: The quantity multiplier (e.g., hours worked, units sold).
Returns
decimal The total amount of money per year as a decimal value.ToString
Returns
string A string that represents the current object.ToString
Parameters
- decimals int: The number of decimal places to display for the currency value.